package com.game.gateway.channel;

import com.game.netty.game.common.IGameMessage;
import io.netty.util.concurrent.Promise;

public interface GameChannelOutboundHandler extends GameChannelHandler {

    void writeAndFlush(AbstractGameChannelHandlerContext ctx, IGameMessage msg, GameChannelPromise promise) throws Exception;
    void writeRPCMessage(AbstractGameChannelHandlerContext ctx,IGameMessage gameMessage,Promise<IGameMessage> callback);
    void close(AbstractGameChannelHandlerContext ctx, GameChannelPromise promise);

}
